<template>
    <div class="header">
        <div class="left commonStyle">
          <img src="../../images/home.png" alt="">
          <span class="text">数据分析</span>
        </div>
        <div class="title"><span>{{title}}</span></div>
        <div class="right commonStyle"><span class="text">系统设置</span></div>
    </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String
    }
  }
}
</script>

<style scoped>
 .header{
    display: flex;
    width: 100%;
    height: 50px;
    margin-top: 10px;
    text-align: center;
    background: url('../../images/top.png') no-repeat;
    background-size: 100% 100%;
    justify-content: space-between;
  }
  .header .commonStyle{
    display: flex;
    align-items: center;
  }
  .header .right{
    margin-right: 50px;
  }
  .header .left{
    margin-left: 50px;
    cursor: pointer;
  }
  .header .text{
    color: #29aaec;
    margin-left: 15px;
    font-weight: bold;
    cursor: pointer;
  }
  .header .title span{
    display: inline-block;
    font-size: 28px;
    font-weight: bold;
    background-image:-webkit-linear-gradient(bottom,#124192,#6ebae9,#aeeaf3);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
  }
</style>
